ChangeSet struct¶
Attributes: [DefaultMember("Item")] [DebuggerDisplay("ChangeSet: {Count}")]
Defined in
Namespace: ReactiveList.Reactive.Core Assembly: ReactiveList.Reactive.dll Full name: ReactiveList.Reactive.Core.ChangeSet<T> Modifiers: public sealed
Summary¶
View source (opens in a new tab)
Represents a set of changes to a collection.
Applies to
net11.0, net10.0, net47, net471, net472, net48, net481
Class hierarchy
classDiagram
class ChangeSet~T~
class IReadOnlyList~Change~T~~ {
<>
}
IReadOnlyList~Change~T~~ <|.. ChangeSet~T~
class IEnumerable~Change~T~~ {
<>
}
IEnumerable~Change~T~~ <|.. ChangeSet~T~
class IEnumerable {
<>
}
IEnumerable <|.. ChangeSet~T~
class IReadOnlyCollection~Change~T~~ {
<>
}
IReadOnlyCollection~Change~T~~ <|.. ChangeSet~T~
class IDisposable {
<>
}
IDisposable <|.. ChangeSet~T~
class IEquatable~ChangeSet~T~~ {
<>
}
IEquatable~ChangeSet~T~~ <|.. ChangeSet~T~
Implements: IReadOnlyList
Remarks¶
This struct stores changes in a compact array. The disposable contract is retained for binary compatibility.
Constructors¶
| Name | Summary |
|---|---|
| .ctor | Initializes a new instance of the ChangeSet struct with a single change. |
Properties¶
| Name | Summary |
|---|---|
| static Empty | Gets an empty change set. |
| Count | Gets the number of changes in the set. |
| Adds | Gets the number of Add changes in this set. |
| Removes | Gets the number of Remove changes in this set. |
| Updates | Gets the number of Update changes in this set. |
| Moves | Gets the number of Move changes in this set. |
| this[] | Gets the change at the specified index. |
Methods¶
| Name | Summary |
|---|---|
| AsSpan | Gets a span over the changes. |
| Equals | Determines whether the specified ChangeSet is equal to the current ChangeSet. |
| GetHashCode | Returns a hash code for this instance. |
| GetEnumerator | Returns an enumerator that iterates through the changes. |
| Dispose | Retained for compatibility. Change sets no longer own pooled storage. |
| ToString | Returns the fully qualified type name of this instance. |
Operators¶
| Name | Summary |
|---|---|
| static op_Inequality | |
| static op_Equality |